############################################################################
#
# Makefile for ppm_table.a  
#
############################ #################################################
include $(CRM_SRC)/env/common.mk

INCLUDE = -I. \
          -I$(CRM_INCLUDE)/database \
          -I$(CRM_INCLUDE)/common 

CFLAGS = $(INCLUDE) $(INCLUDE_COMMON) $(CFLAGS_COMMON)

PPMTABLELIBS = db_ppm_attr_group_rela.o \
               db_ppm_attr_group_rela_his.o \
			   db_ppm_attr_ins.o \
			   db_ppm_attr_ins_his.o \
			   db_ppm_attr_value_ins.o \
			   db_ppm_attr_value_ins_his.o \
			   db_ppm_disp.o \
			   db_ppm_disp_his.o \
			   db_ppm_disp_rela.o \
			   db_ppm_disp_rela_his.o \
			   db_ppm_proc_ord.o \
			   db_ppm_proc_ord_his.o \
			   db_ppm_proc_record.o \
			   db_ppm_proc_record_his.o \
			   db_ppm_prod_app_attr.o \
			   db_ppm_prod_app_attr_group.o \
			   db_ppm_prod_app_attr_group_his.o \
			   db_ppm_prod_app_attr_his.o \
			   db_ppm_prod_app_attr_value.o \
			   db_ppm_prod_app_attr_value_his.o \
			   db_ppm_prod_app_task.o \
			   db_ppm_prod_app_task_attr.o \
			   db_ppm_prod_app_task_attr_his.o \
			   db_ppm_prod_app_task_ext.o \
			   db_ppm_prod_app_task_ext_his.o \
			   db_ppm_prod_app_task_his.o \
			   db_ppm_prod_application.o \
			   db_ppm_prod_application_his.o \
			   db_ppm_prod_catalog.o \
			   db_ppm_prod_catalog_his.o \
			   db_ppm_prod_catalog_node.o \
			   db_ppm_prod_catalog_node_his.o \
			   db_ppm_prod_temp_attr.o \
			   db_ppm_prod_temp_attr_his.o \
			   db_ppm_prod_temp_attr_value.o \
			   db_ppm_prod_temp_attr_value_his.o \
			   db_ppm_prod_temp_selected.o \
			   db_ppm_prod_temp_selected_his.o \
			   db_ppm_prod_template.o \
			   db_ppm_prod_template_his.o \
			   db_ppm_temp_attr_selected.o \
			   db_ppm_temp_attr_selected_his.o \
			   db_ppm_prod_temp_attr_rela.o \
			   db_ppm_prod_temp_attr_rela_his.o \
			   db_ppm_prod_temp_attr_rela.o \
			   db_ppm_attr_spec.o \
			   db_ppm_offer_cmpst_role.o \
			   db_ppm_offer_rela.o \
			   db_ppm_prod_comp_role.o \
			   db_ppm_prod_offer.o \
			   db_ppm_prod_service_offer.o \
			   db_ppm_product.o \
			   db_ppm_product_rela.o \
			   db_ppm_attr_spec_his.o \
			   db_ppm_offer_cmpst_role_his.o \
			   db_ppm_offer_rela_his.o \
			   db_ppm_prod_comp_role_his.o \
			   db_ppm_prod_offer_his.o \
			   db_ppm_prod_service_offer_his.o \
			   db_ppm_product_his.o \
			   db_ppm_product_rela_his.o \
			   db_ppm_product_attr_selected.o \
			   db_ppm_prod_platform.o \
			   db_ppm_prod_platform_his.o \
			   db_ppm_prod_platform_rela.o \
			   db_ppm_prod_platform_rela_his.o \
			   db_ppm_app_ins_sync.o \
			   db_ppm_app_ins_sync_his.o \
			   db_prod_cfg_ppm_attr_rela.o \
			   db_prod_cfg_ppm_attr_rela_his.o \
			   db_sys_cfg_tree.o \
			   db_sys_cfg_tree_his.o \
			   db_ppm_service_offer.o \
			   db_ppm_service_offer_his.o \
			   db_ppm_prod_operate_flow.o \
			   db_ppm_attr_rela.o \
			   db_ppm_attr_rela_his.o \
			   db_ppm_attr_value_spec.o \
			   db_ppm_attr_value_spec_his.o \
			   db_ppm_catalog_rela.o \
			   db_ppm_catalog_rela_his.o \
			   db_ppm_catalog_permission.o \
			   db_ppm_catalog_permission_his.o \
			   db_ppm_staff_permission.o \
			   db_ppm_staff_permission_his.o \
			   db_ppm_price_desc_item.o \
			   db_ppm_price_desc_item_catalog.o \
			   db_ppm_price_desc_item_spec.o \
			   db_ppm_price_desc_param.o \
			   db_ppm_price_desc_param_spec.o \
			   db_ppm_price_desc_section.o \
			   db_ppm_price_desc_item_node.o \
			   db_ppm_offer_rule_catalog.o \
			   db_ppm_offer_rule_express.o \
			   db_ppm_offer_rule_operator.o \
			   db_ppm_offer_rule_spec.o \
			   db_ppm_interface_accept.o \
			   db_ppm_interface_accept_his.o \
			   db_ppm_interface_send.o \
			   db_ppm_interface_send_his.o \
			   db_ppm_flow_interface_rela.o \
			   db_ppm_offer_rule_catalog_node.o \
			   db_ppm_offer_prod_rela.o \
			   db_ppm_offer_prod_rela_role.o \
			   db_ppm_prod_offer_res_rela.o \
			   db_ppm_mkt_resource.o \
			   db_ppm_prod_char_value_restrict.o \
			   db_ppm_cust_group.o \
			   db_ppm_prod_offer_cust_group.o \
			   db_ppm_channel.o \
			   db_ppm_prod_offer_channel.o \
			   db_ppm_common_region.o \
			   db_ppm_prod_offer_region.o \
			   db_ppm_time_segment.o \
			   db_ppm_prod_offer_time.o \
			   db_ppm_prod_offer_assure_demand.o \
			   db_ppm_prod_offer_attr.o \
			   db_ppm_prod_mkt_res_rela.o \
			   db_ppm_prod_region.o \
			   db_ppm_acc_nbr_type.o \
			   db_ppm_prod_acc_nbr_type.o \
                           db_ppm_partner.o \
                           db_ppm_partner_attribute.o \
                           db_ppm_party_contact_info.o \
                           db_ppm_party_contact_rela.o \
			   db_ppm_rule.o \
			   db_ppm_role.o \
                           db_ppm_rule_relation.o \
			   db_ppm_product_provider.o \
			   db_ppm_prod_operate_flow_his.o \
			   db_ppm_log_info.o \
			   db_ppm_selected_prod_attr_value.o \
			   db_ppm_selected_prod_attr.o \
			   db_ppm_mdse_rela_flow.o \
			   db_ppm_mdse_rela_flow_his.o \
			   db_ppm_zb.o \
			   db_ppm_mdse_count.o \
			   db_ppm_mdse_restrict.o \
			   db_ppm_app_rela.o \
			   db_ppm_log_info_his.o \
                           db_ppm_offer_price_plan.o \
			   db_ppm_offer_price_plan_his.o \
			   db_pricing_plan.o \
			   db_ppm_prod_default_event.o \
			   db_ppm_flow_assign.o \
			   db_ppm_prod_balance.o \
			   db_ppm_prod_quantity.o \
			   db_ppm_prod_sales_promotion.o \
			   db_ppm_sales_promotion_detail.o \
			   db_ppm_app_attachment.o \
			   db_ppm_price_plan_bill.o \
			   db_ppm_price_plan_bill_his.o \
			   db_ppm_prod_offer_bill.o \
			   db_ppm_prod_offer_bill_his.o \
			   db_ppm_state_template_rela.o \
			   db_ppm_state_template_rela_his.o\
			   db_ppm_department.o \
			   db_ppm_department_his.o \
			   db_ppm_gh_dept_rela.o \
			   db_ppm_gh_dept_rela_his.o \
			   db_ppm_proc_attr.o\
                           db_ppm_discount_express.o\
			   db_ppm_discount_time_limit.o\
			   db_ppm_event_pricing_strategy.o\
			   db_ppm_event_type.o\
			   db_ppm_life_cycle.o\
			   db_ppm_pricing_combine.o\
			   db_ppm_pricing_combine_relation.o\
			   db_ppm_pricing_plan.o\
			   db_ppm_pricing_section.o\
			   db_ppm_section_relation.o\
			   db_ppm_tariff.o\
			   db_ppm_const_param.o\
			   db_ppm_express.o\
			   db_ppm_express_element.o\
			   db_ppm_express_element_operator.o\
			   db_ppm_express_element_var_param.o\
			   db_ppm_pricing_info.o\
			   db_prod_offer_onetime_price_info.o\
			   db_ppm_price_info.o\
			   db_ppm_price_param.o\
                           db_ppm_pri_data_type.o\
         db_ppm_primary_data.o\
         db_ppm_offer_prod_comp_detail.o\
			   db_ppm_va_ext_info.o                  
                   

all: ppmtable

ppmtable:$(PPMTABLELIBS) 
	$(AR) -rv ppmtable.a $?

clean:
	rm -f *.o
	rm -f *.a
cp :
	cp *.a $(CRM_BIN)/

install: 
	cp *.h* $(CRM_INCLUDE)/ppm_table/
	cp *.a  $(CRM_BIN)/